package com.qyt.hotel.dao;

import com.qyt.hotel.entity.Role;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface RoleMapper {

    List<Role> getRoleList();

    Integer addRole(Role role);

    Integer deleteRole(Role role);

    // 获取一个角色信息
    Role getOne(Integer roleId);

    Integer updateRole(Role role);
}
